class CustomListEntity {
	int number;
	bool last;
	int numberOfElements;
	int size;
	int totalPages;
	CustomListPageable pageable;
	CustomListSort sort;
	List<CustomListContent> content;
	bool first;
	int totalElements;

	CustomListEntity({this.number, this.last, this.numberOfElements, this.size, this.totalPages, this.pageable, this.sort, this.content, this.first, this.totalElements});

	CustomListEntity.fromJson(Map<String, dynamic> json) {
		number = json['number'];
		last = json['last'];
		numberOfElements = json['numberOfElements'];
		size = json['size'];
		totalPages = json['totalPages'];
		pageable = json['pageable'] != null ? new CustomListPageable.fromJson(json['pageable']) : null;
		sort = json['sort'] != null ? new CustomListSort.fromJson(json['sort']) : null;
		if (json['content'] != null) {
			content = new List<CustomListContent>();(json['content'] as List).forEach((v) { content.add(new CustomListContent.fromJson(v)); });
		}
		first = json['first'];
		totalElements = json['totalElements'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['number'] = this.number;
		data['last'] = this.last;
		data['numberOfElements'] = this.numberOfElements;
		data['size'] = this.size;
		data['totalPages'] = this.totalPages;
		if (this.pageable != null) {
      data['pageable'] = this.pageable.toJson();
    }
		if (this.sort != null) {
      data['sort'] = this.sort.toJson();
    }
		if (this.content != null) {
      data['content'] =  this.content.map((v) => v.toJson()).toList();
    }
		data['first'] = this.first;
		data['totalElements'] = this.totalElements;
		return data;
	}
}

class CustomListPageable {
	bool paged;
	int pageNumber;
	int offset;
	int pageSize;
	bool unpaged;
	CustomListPageableSort sort;

	CustomListPageable({this.paged, this.pageNumber, this.offset, this.pageSize, this.unpaged, this.sort});

	CustomListPageable.fromJson(Map<String, dynamic> json) {
		paged = json['paged'];
		pageNumber = json['pageNumber'];
		offset = json['offset'];
		pageSize = json['pageSize'];
		unpaged = json['unpaged'];
		sort = json['sort'] != null ? new CustomListPageableSort.fromJson(json['sort']) : null;
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['paged'] = this.paged;
		data['pageNumber'] = this.pageNumber;
		data['offset'] = this.offset;
		data['pageSize'] = this.pageSize;
		data['unpaged'] = this.unpaged;
		if (this.sort != null) {
      data['sort'] = this.sort.toJson();
    }
		return data;
	}
}

class CustomListPageableSort {
	bool unsorted;
	bool sorted;

	CustomListPageableSort({this.unsorted, this.sorted});

	CustomListPageableSort.fromJson(Map<String, dynamic> json) {
		unsorted = json['unsorted'];
		sorted = json['sorted'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['unsorted'] = this.unsorted;
		data['sorted'] = this.sorted;
		return data;
	}
}

class CustomListSort {
	bool unsorted;
	bool sorted;

	CustomListSort({this.unsorted, this.sorted});

	CustomListSort.fromJson(Map<String, dynamic> json) {
		unsorted = json['unsorted'];
		sorted = json['sorted'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['unsorted'] = this.unsorted;
		data['sorted'] = this.sorted;
		return data;
	}
}

class CustomListContent {
	String modifiedTime;
	String phone;
	int consumerId;
	int creatorId;
	int modifierId;
	String name;
	String createdTime;
	int id;
	int marketId;

	CustomListContent({this.modifiedTime, this.phone, this.consumerId, this.creatorId, this.modifierId, this.name, this.createdTime, this.id, this.marketId});

	CustomListContent.fromJson(Map<String, dynamic> json) {
		modifiedTime = json['modifiedTime'];
		phone = json['phone'];
		consumerId = json['consumerId'];
		creatorId = json['creatorId'];
		modifierId = json['modifierId'];
		name = json['name'];
		createdTime = json['createdTime'];
		id = json['id'];
		marketId = json['marketId'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['modifiedTime'] = this.modifiedTime;
		data['phone'] = this.phone;
		data['consumerId'] = this.consumerId;
		data['creatorId'] = this.creatorId;
		data['modifierId'] = this.modifierId;
		data['name'] = this.name;
		data['createdTime'] = this.createdTime;
		data['id'] = this.id;
		data['marketId'] = this.marketId;
		return data;
	}
}
